package com.ruoyi.quartz.service.impl;

import com.ruoyi.quartz.domain.BaseInfo;
import com.ruoyi.quartz.mapper.BaseInfoMapper;
import com.ruoyi.quartz.service.IBaseInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BaseInfoServiceImpl implements IBaseInfoService {

    @Resource
    private BaseInfoMapper baseInfoMapper;

    @Override
    public List<BaseInfo> selectAll(BaseInfo baseInfo) {
        return baseInfoMapper.selectAll(baseInfo);
    }

    @Override
    public int addBanner(BaseInfo baseInfo) {
        return baseInfoMapper.addBanner(baseInfo);
    }

    @Override
    public int updateBanner(BaseInfo baseInfo) {
        return baseInfoMapper.updateBanner(baseInfo);
    }

    @Override
    public int deleteBannerByIds(Integer[] ids) {
        return baseInfoMapper.deleteBannerByIds(ids);
    }

    @Override
    public BaseInfo selectBannerById(Integer id) {
        return baseInfoMapper.selectBannerById(id);
    }
}
